<div class="panel panel-default">
    <div class="panel-heading">
        <b>Cluster Health</b>
    </div>
    <div class="panel-body">
        <div class="row">
            <div class="col-md-3">
                <div>
                    <o-gauge [val]="cpuPercent" [height]="height"></o-gauge>
                </div>
                <div class="chart-label text-center">
                    <span>CPU</span>
                </div>
            </div>
            <div class="col-md-3">
                <div>
                    <o-gauge [val]="ramPercent" [height]="height">

                    </o-gauge>
                </div>
                <div class="chart-label text-center">
                    <span>RAM</span>
                    <br>
                    <span>
                        <b>{{usedMemoy | toSizeString}} / {{maxMemory | toSizeString}}</b>
                    </span>
                </div>
            </div>
            <div class="col-md-3">
                <div>
                    <o-gauge [val]="diskCachePercent" [height]="height"></o-gauge>
                </div>

                <div class="chart-label text-center">
                    <span>DISK CACHE</span>
                    <br>
                    <span>
                        <b>{{totalDiskCache | toSizeString}} / {{maxDiskCache | toSizeString}}</b>
                    </span>
                </div>
            </div>
            <div class="col-md-3">
                <div>
                    <o-gauge [val]="diskPercent" [height]="height">

                    </o-gauge>
                </div>
                <div class="chart-label text-center">
                    <span>DISK</span>
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="col-md-6">
                <b>Active Nodes:</b> {{servers.length}}
            </div>
            <div class="col-md-6">
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <b>Status:</b> <span ng-class="getStatusLabel(server.status)">{{ status }}</span>
            </div>
            <div class="col-md-6">
                <span><b>Operations:</b> {{operations | async}} </span>
            </div>
        </div>

        <div class="row">
            <div class="col-md-6">
                <span><b>Active Sessions:</b> {{sessions}}</span>
            </div>
            <div class="col-md-6">
                <span><b>Network Requests:</b> {{networkRequests | async}} </span>
            </div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <span><b>Average Latency:</b> {{latency}} ms </span>
            </div>
        </div>
    </div>
</div>